package com.yafengliang.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * @Author: YafengLiang
 * @Description:
 * @Date: Created in  16:07 2019/1/9
 */

@RestController
public class UserController {

    @RequestMapping(value = "user/me")
    public Principal user(Principal principal){
        System.out.println(principal);
        return principal;
    }

}
